//分类数据
const mongoose = require('mongoose');
const itemSchema = new mongoose.Schema({
  itemName:{
    type: String,
    required: true//必须写
  },
  itemIcon:String, // 分类图标的路径
  itemDesc: String,
  pid: {
    type: String,
    default: '-1' // -1代表顶层分类
  }
})
const itemModel = mongoose.model('qf_items',itemSchema);
module.exports = itemModel;